<template>
  <div class="container">
    <!-- `checked` 为 true 或 false -->
    <el-checkbox v-model="checked" @change="send">热力图显示</el-checkbox>
  </div>
</template>

<script>
import bus from "@/eventBus/eventBus.js";
export default {
  data() {
    return {
      checked: false,
    };
  },
  methods: {
    send() {
      bus.$emit("shareHeartMapShow", this.checked);
    },
  },
};
</script>

<style lang="less" scoped>
</style>